package com.booby.design.templateMethod;

/**
 * 功能描述: 模板方法模式
 *
 * @author: lizt
 * @date: 2019-06-30 17:03
 **/

public class ApplyTemplateMethod {

    public static void main(String[] args) {

        System.out.println("华为手机工作......");
        System.out.println("-------------------");
        HuaWei huaWei = new HuaWei();
        huaWei.work();

        System.out.println("");
        System.out.println("");

        System.out.println("小米手机工作......");
        System.out.println("-------------------");
        XiaoMi xiaoMi = new XiaoMi();
        xiaoMi.work();
    }
}
